package com.atwisdom.star.common.actionType;

/**************************************************************************************
 * 方法枚举
 *
 **************************************************************************************/
public enum InfConfigActionType {
    //region ******************对应InfConfigDslService中的方法*urlPath = "/infConfig"*****************
    INF_CONFIG_ADD("INF_ADD", "add", "添加"),
    INF_CONFIG_ADD_BATCH("INF_ADD_BATCH", "addBatchInstance", "批量添加实例"),
    INF_CONFIG_UPDATE("INF_UPDATE", "update", "更新模型"),
    INF_CONFIG_BATCH_UPDATE("INF_BATCH_UPDATE", "batchUpdate", "批量更新模型"),
    INF_CONFIG_DELETE("INF_DELETE", "delete", "通用删除"),
    INF_CONFIG_DELETE_BATCH("INF_DELETE_BATCH", "batchDelete", "批量删除"),
    INF_CONFIG_DELETE_BY_IDS("INF_DELETE_BY_IDS", "deleteByIds", "批量删除"),
    INF_CONFIG_QUERY("INF_QUERY", "query", "查询模型"),
    INF_CONFIG_QUERY_BY_PAGE("INF_QUERY_BY_PAGE", "queryByPage", "分页查询"),
    INF_CONFIG_QUERY_BY_ID("INF_QUERY_BY_ID", "queryById", "分页查询"),
    INF_CONFIG_QUERY_BY_IDS("INF_QUERY_BY_IDS", "queryByIds", "分页查询");
    //endregion

    private final String code;
    private final String methodName;
    private final String description;

    public String getCode() {
        return code;
    }

    public String getMethodName() {
        return methodName;
    }

    public String getDescription() {
        return description;
    }

    InfConfigActionType(String code, String methodName, String description) {
        this.code = code;
        this.methodName = methodName;
        this.description = description;
    }
}
